﻿@using Util.Ui
@model IterationLife.PlatformBackEnd.AppServices.Dtos.FootballTeachings.LessonDto
@{
    var x = @Html.EasyUi();
}
<script type="text/javascript">
    var ueditor_save = function (data) {
        $("input[name=Content]").val($("#ueditor")[0].contentWindow.getContent());
        return data;
    }
    var save_after = function () {
        $.easyui.closeDialog();
    }
</script>
<div class="divForm">
    <div class="formtitle">
        课时管理
        @x.DialogButton("选择课时", $"/FootballTeachings/Lesson/DialogIndex?SortId={Model.SortId}").DialogSize(1300,800).AddStyle("float", "right").Buttons("dialogButtons_lesson").Id("dialogButtonsBtn_lesson")
    </div>
    @using (x.Form("form").AddClass("form").Action("/FootballTeachings/lesson/save").Begin())
    {
        using (x.Panel().Border(false).AddStyle("overflow-x", "hidden").AddStyle("overflow-y", "hidden").Id("panel_lesson_form").Begin())
        {
            @Html.Action("FormPanel", "Lesson", new { id = Model.Id, sortId = Model.SortId })
        }
        @Html.HiddenFor(t => t.ChapterId)
        @Html.HiddenFor(t => t.CreationTime)
        @Html.HiddenFor(t => t.CreatorId)
        @Html.HiddenFor(t => t.LastModificationTime)
        @Html.HiddenFor(t => t.LastModifierId)
        @Html.HiddenFor(t => t.IsDeleted)
        @Html.HiddenFor(t => t.Version)
        @Html.HiddenFor(t => t.Id)
        @Html.AntiForgeryToken()
    }
</div>
<div id="dialogButtons">
    @x.Button("保 存").Icon("icon-ok").Width(90).Submit("ueditor_save", "save_after")
    @x.DialogButton("关 闭").Icon("icon-cancel").Width(90).CloseDialog()
</div>
